<!--
 * @Descripttion: 
 * @Author: 荷逸
 * @email: 563428234@qq.com
 * @Date: 2021-01-22 10:23:04
-->
{extend name="public/base" /}
{block name='content'}
{include file='public/content_header' /}
{js href="__ADMIN_JS__/lan.js" /}
{js href="__ADMIN_JS__/files.js" /}
{css href="__ADMIN_CSS__/files.css" /}
<!--数据列表页面-->
<section class="content">


    <div class="row">
        <div class="col-md-12">
            <div class="box">

                <!--数据列表顶部-->
                <div class="box-header">
                    <div id="tipTools" class="plr15">
                        <div class="ptb15">
                            <div class="clearfix">
                                <div class="pull-left">
                                    <button id="backBtn"
                                        class="backBtn btn btn-default btn-sm glyphicon glyphicon-arrow-left pull-left"
                                        title="后退" onclick="BackDir()"></button>
                                    <button
                                        class="backBtn refreshBtn btn btn-default btn-sm glyphicon glyphicon-refresh pull-right"
                                        title="刷新" style="margin-left:-1px;" onclick="loadFiles()"></button>
                                    <span id="DirPathPlace" class="pull-left" style="display: none;">
                                        <input id="fileInputPath" type="text" style="width: 1005px;"></span>
                                    <span id="PathPlaceBtn" class="pull-left " style="max-width: 995px; min-width:600px;display: inline;">

                                    </span>
                                </div>
                                <div class="pull-left mlr15" style="line-height:26px"><span id="DirInfo"></span></div>
                                <div class="search pull-right"
                                    style="position: absolute; top: 6px; right: 5px;min-width: 18%;">
                                    <div class="search_box">
                                        <input id="search_all" type="checkbox">
                                        <label for="search_all">包含子目录</label>
                                    </div>
                                    <form target="hid" onsubmit="GetFiles(1)">
                                        <input type="text" id="SearchValue" class="ser-text pull-left" placeholder="">
                                        <button type="button" class="btn btn-success btn-sm ser-sub  pull-left"
                                            onclick="GetFiles(1)">
                                            <i class="fa fa-search"></i>
                                        </button>

                                    </form>
                                    <iframe name="hid" id="hid" style="display:none"></iframe>
                                </div>
                            </div>
                        </div>

                            <hr>

                            <div class=" clearfix ptb10">
                                <button class="btn btn-default btn-sm pull-left" onclick="UploadFiles()">上传</button>
                                <button class="btn btn-default btn-sm pull-left" onclick="DownloadFile()"
                                    title="下载文件到服务器" style="margin:0 5px">远程下载</button>
                                <span id="BarTools">
                                  
                                </span>
                                <span id="Batch" style="background-color:#fff;position:absolute;right:190px;z-index:10"></span>
                             
                            </div>
                            <hr>


                    </div>
                </div>

                <div class="box-body table-responsive">
                    <table class="table table-hover table-bordered datatable" width="100%">
                        <thead>
                            <tr>

                                <th>文件名称</th>
                                <th>大小</th>
                                <th>文件类型</th>
                                <th>权限</th>
                                <th>修改时间</th>
                                <th>操作</th>
                            </tr>
                        </thead>
                        <tbody class="column-name" id="tbodyHtml">

                        </tbody>
                    </table>
                </div>


            </div>
        </div>
    </div>
</section>

<script>
    $(function () {
        if (typeof (GetFiles) != 'function') {
            window.location.reload()
        }
        GetFiles(1);
    })
</script>
{/block}